#!/bin/sh
viewSize=`for i in src/view/*.cpp ; do cat $i ; done | wc -l`
for i in src/view/*.cpp ; do echo $i ; done
controllerSize=`for i in src/controller/*.cpp ; do cat $i ; done | wc -l`
for i in src/controller/*.cpp ; do echo $i ; done
modelSize=`for i in src/model/*.cpp ; do cat $i ; done | wc -l`
for i in src/model/*.cpp ; do echo $i ; done
hSize=`for i in include/*.h ; do cat $i ; done | wc -l`
for i in include/*.h ; do echo $i ; done
amSize=$(for i in `find .|grep Makefile.am|grep -v \~|grep -v svn` ; do cat $i ; done | wc -l)
for i in `find .|grep Makefile.am|grep -v \~|grep -v svn` ; do echo $i ; done

#echo $viewSize
#echo $controllerSize
#echo $modelSize
#echo $hSize
#echo $amSize
allCount=$((viewSize + controllerSize + modelSize + hSize + amSize))
echo 
echo "All your code counted has ${allCount} lines"
